From 5e667ea561770dd257d17e08b890666514c345d1 Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Mon, 8 Sep 2008 14:29:26 +0000 Subject: [PATCH] use gdk_threads_add_idle so that the handler acquires the lock since it 2008-09-08 Paolo Borelli * gtk/gtkfilechooserentry.c (install_start_autocompletion_idle): use gdk_threads_add_idle so that the handler acquires the lock since it calls gtk functions. svn path=/trunk/; revision=21321 --- ChangeLog | 6 ++++++ gtk/gtkfilechooserentry.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0cf1e46eb1..a732cbb6be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-09-08 Paolo Borelli + + * gtk/gtkfilechooserentry.c (install_start_autocompletion_idle): + use gdk_threads_add_idle so that the handler acquires the lock + since it calls gtk functions. + 2008-09-08 Tor Lillqvist * configure.in (debug_default): Correct help string for diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index 1ff7a79d37..a40e429fff 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -1545,7 +1545,7 @@ install_start_autocompletion_idle (GtkFileChooserEntry *chooser_entry) if (chooser_entry->start_autocompletion_idle_id != 0) return; - chooser_entry->start_autocompletion_idle_id = g_idle_add (start_autocompletion_idle_handler, chooser_entry); + chooser_entry->start_autocompletion_idle_id = gdk_threads_add_idle (start_autocompletion_idle_handler, chooser_entry); } #ifdef G_OS_WIN32 -- 2.30.2